import request from '@/utils/request'

// 查询维护计划列表
export function listMaintainOrder(query) {
  return request({
    url: '/security/maintainOrder/list',
    method: 'get',
    params: query
  })
}

// 查询维护计划详细
export function getMaintainOrder(id) {
  return request({
    url: '/security/maintainOrder/' + id,
    method: 'get'
  })
}

// 新增维护计划
export function addMaintainOrder(data) {
  return request({
    url: '/security/maintainOrder',
    method: 'post',
    data: data
  })
}

// 修改维护计划
export function updateMaintainOrder(data) {
  return request({
    url: '/security/maintainOrder',
    method: 'put',
    data: data
  })
}

// 删除维护计划
export function delMaintainOrder(id) {
  return request({
    url: '/security/maintainOrder/' + id,
    method: 'delete'
  })
}
